<?php
class Test_model extends CI_Model{

	function   __construct() {
        parent::__construct();
    }

    function getTest(){

	   $query = $this->db->query("SELECT *  FROM pendidikan
               ORDER BY kode_pendidikan ASC");
	   return $query->result();
    }
//    function getPendidikan(){
//
//	   $query = $this->db->query("SELECT *  FROM pendidikan
//               ORDER BY kode_pendidikan ASC");
//	   return $query->result();
//    }
    function get_Pendidikan($q)
    {
        $sql = "select * from pendidikan where nama_pendidikan like '$q%";

        $Q = $this->db->query($sql);
        return $Q;
    }

}

?>
